发起交易拦截申诉
通过该接口可发起交易拦截申诉
请求参数 | 类型 | 描述 |
---|---|---|
sub_mchid | string | 子商户号 |
json | object | 声明请求的JSON 数据结构 |
merchant_submit_id | string | 商户侧申诉单号 |
submit_data | string | 商户提交资料内容 |
record_fields | object[] | 资料项集合 |
item_id | string | 资料项ID |
field_name | string | 资料项英文名 |
name | string | 资料项中文名 |
type | number | 资料项类型1 | 2 | 11 | 15 枚举值之一 |
tips | string | 资料项填写提示 |
placeholder | string | 输入框占位文案 |
tooltip | string | 叹号悬浮提示语 |
required | number | 是否必须提交0 | 1 枚举值之一 |
check_rule | object | 校验规则 |
min_length | number | 字符串最小长度 |
max_length | number | 字符串最大长度 |
enum_file_exts | string[] | 限制提交的文件后缀png | jpg | jpeg 枚举值之一 |
max_file_size | number | 限制文件提交大小,单位M |
enum_keys | number[] | 枚举可选的字段枚举值 |
enum_values | string[] | 展示给商户看的枚举可选的字段列表 |
relations | object[] | 资料项关联规则集合 (不同资料项ID取交集且,相同资料项ID不同资料项值取并集或) |
source_key | number | 关联的资料项ID |
source_value | string | 关联的资料项值 |
need_encrypt | boolean | 提交内容需要加密 |
php
$instance->v3->transactionBlock->transactionBlockSubmissions->subMchid->_sub_mchid_->postAsync([
'sub_mchid' => '123000110',
'json' => [
'merchant_submit_id' => 'ABC123456789',
'submit_data' => \json_encode([
'record_fields' => [[
'item_id' => '',
'field_name' => '',
'name' => '',
'type' => 0,
'tips' => '',
'placeholder' => '',
'tooltip' => '',
'required' => 0,
'check_rule' => [
'min_length' => 0,
'max_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
'enum_keys' => [1],
'enum_values' => ['string'],
],
'relations' => [[
'source_key' => 0,
'source_value' => '',
],],
'need_encrypt' => true,
],],
]),
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/transaction-block/transaction-block-submissions/sub-mchid/{sub_mchid}')->postAsync([
'sub_mchid' => '123000110',
'json' => [
'merchant_submit_id' => 'ABC123456789',
'submit_data' => \json_encode([
'record_fields' => [[
'item_id' => '',
'field_name' => '',
'name' => '',
'type' => 0,
'tips' => '',
'placeholder' => '',
'tooltip' => '',
'required' => 0,
'check_rule' => [
'min_length' => 0,
'max_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
'enum_keys' => [1],
'enum_values' => ['string'],
],
'relations' => [[
'source_key' => 0,
'source_value' => '',
],],
'need_encrypt' => true,
],],
]),
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/transaction-block/transaction-block-submissions/sub-mchid/{sub_mchid}']->postAsync([
'sub_mchid' => '123000110',
'json' => [
'merchant_submit_id' => 'ABC123456789',
'submit_data' => \json_encode([
'record_fields' => [[
'item_id' => '',
'field_name' => '',
'name' => '',
'type' => 0,
'tips' => '',
'placeholder' => '',
'tooltip' => '',
'required' => 0,
'check_rule' => [
'min_length' => 0,
'max_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
'enum_keys' => [1],
'enum_values' => ['string'],
],
'relations' => [[
'source_key' => 0,
'source_value' => '',
],],
'need_encrypt' => true,
],],
]),
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->transactionBlock->transactionBlockSubmissions->subMchid->_sub_mchid_->post([
'sub_mchid' => '123000110',
'json' => [
'merchant_submit_id' => 'ABC123456789',
'submit_data' => \json_encode([
'record_fields' => [[
'item_id' => '',
'field_name' => '',
'name' => '',
'type' => 0,
'tips' => '',
'placeholder' => '',
'tooltip' => '',
'required' => 0,
'check_rule' => [
'min_length' => 0,
'max_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
'enum_keys' => [1],
'enum_values' => ['string'],
],
'relations' => [[
'source_key' => 0,
'source_value' => '',
],],
'need_encrypt' => true,
],],
]),
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/transaction-block/transaction-block-submissions/sub-mchid/{sub_mchid}')->post([
'sub_mchid' => '123000110',
'json' => [
'merchant_submit_id' => 'ABC123456789',
'submit_data' => \json_encode([
'record_fields' => [[
'item_id' => '',
'field_name' => '',
'name' => '',
'type' => 0,
'tips' => '',
'placeholder' => '',
'tooltip' => '',
'required' => 0,
'check_rule' => [
'min_length' => 0,
'max_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
'enum_keys' => [1],
'enum_values' => ['string'],
],
'relations' => [[
'source_key' => 0,
'source_value' => '',
],],
'need_encrypt' => true,
],],
]),
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/transaction-block/transaction-block-submissions/sub-mchid/{sub_mchid}']->post([
'sub_mchid' => '123000110',
'json' => [
'merchant_submit_id' => 'ABC123456789',
'submit_data' => \json_encode([
'record_fields' => [[
'item_id' => '',
'field_name' => '',
'name' => '',
'type' => 0,
'tips' => '',
'placeholder' => '',
'tooltip' => '',
'required' => 0,
'check_rule' => [
'min_length' => 0,
'max_length' => 0,
'enum_file_exts' => ['png'],
'max_file_size' => 0,
'enum_keys' => [1],
'enum_values' => ['string'],
],
'relations' => [[
'source_key' => 0,
'source_value' => '',
],],
'need_encrypt' => true,
],],
]),
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
block_submission_id | string | 交易拦截申诉ID |
submit_time | string | 提交时间 |
review_result | string | 审核结果EMPTY | PASS | REJECT 枚举值之一 |
review_time | string | 审核时间 |
review_reject_reason | string | 审核驳回原因 |
参阅 官方文档